package com.epoch.servicecourse.dao;

import com.epoch.servicecourse.bean.Video;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 *
 * @author Seven
 * @date 2021/11/14
 */
@Mapper
@Repository
public interface VideoDao {
    /**
     * get video by videoName
     * @param videoName
     * @return
     */
    Video getVideoByVName(@Param("videoName") String videoName);

    /**
     * get video by videoId
     * @param videoId
     * @return
     */
    Video getVideoByVideoId(@Param("videoId") Integer videoId);

}
